package a21_ObjectArray;/**
 * @Author quan
 * @Description 商品类
 * @Date 2023/2/3 21:47
 */
public class Goods {
     private String id;
     private String name;
     private int price;
     private int restNum;

     public Goods(){
     }
     public Goods(String id, String name, int price, int restNum){
         this.id = id;
         this.name = name;
         this.price = price;
         this.restNum = restNum;
     }
     public void setId(String id){
         this.id = id;
     }
     public String getId(){
         return id;
     }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void setPrice(int price){
        this.price = price;
    }
    public int getPrice(){
        return price;
    }
    public void setRestNum(int restNum){
        this.restNum = restNum;
    }
    public int getRestNum(){
        return restNum;
    }

}
